/*
 * @Author: liuyonghu
 * @Date: 2021-05-07 15:17:07
 * @LastEditTime: 2021-05-07 17:12:36
 * @LastEditors: liuyonghu
 * @Description:
 * @FilePath: \my-computer\src\main.js
 */
import { createApp } from "vue";
// import ElementPlus from "element-plus";
import {
  ElButton,
  ElCol,
  ElRow,
  ElContainer,
  ElHeader,
  ElAside,
  ElMain,
  ElFooter,
} from "element-plus";
import "element-plus/lib/theme-chalk/index.css";

import App from "./App.vue";
import router from './router'

const app = createApp(App).use(router);
// app.use(ELRow);
// app.use(ElButton);
const plugins = [
  // // const components = [
  ElButton,
  ElCol,
  ElRow,
  ElContainer,
  ElHeader,
  ElAside,
  ElMain,
  ElFooter,
];

// components.forEach((it) => {
//   app.component(it.name, it);
// });
plugins.forEach((element) => {
  app.use(element);
});



app.mount("#app");
